/**
 * Copyright: Copyright (c) 2012
 * Company:anhosi.com
 * @author lifuyu
 * @date Aug 12, 2012
 * @version V1.0
 *
 * @Description: 
 */
package com.microcm.manage.action;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.microcm.common.CUtils;
import com.microcm.insync.service.InsyncService;
import com.microcm.manage.service.SuperService;
import com.microcm.system.entity.SysMenu;
import com.microcm.system.service.SystemService;
import com.microcmframework.core.action.BaseAction;
import com.microcmframework.core.entity.PageBean;
import com.microcmframework.core.exception.JSONException;

/**
 * 管理通用操作类
 * 
 * @author kansum
 * 
 */
@Controller("superAction")
public class SuperAction extends BaseAction
{
	private static final long serialVersionUID = 1L;

	@Autowired
	private InsyncService insyncService;

	@Autowired
	private SuperService superService;

	@Autowired
	private SystemService systemService;

	/**
	 * 开始同步淘宝的分类数据到本地数据库中
	 * 
	 * @author：lifuyu
	 * @return
	 * @throws Exception
	 */
	public String categorySync() throws JSONException
	{
		try
		{
			String _v = this.getParamValue("parentCid", true);
			long parentCid = _v == null ? 0L : Long.parseLong(_v);
			List<Map<String, Object>> resultList = new ArrayList<Map<String, Object>>();
			String ret = this.insyncService.categorySynchronizingFromTaobao(parentCid, resultList);
			if ("1".equals(ret))
				return this.sendRespJsonValue(SUCCESS, resultList);
			if ("0".equals(ret))
				return this.sendRespJsonValue(ERROR, "查询不到数据！");
			else
				return this.sendRespJsonValue(ERROR, ret);
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 保存选择的淘宝类别数据到本地库
	 * 
	 * @author：lifuyu
	 * 
	 * @return
	 * @throws Exception
	 */
	public String categorySave() throws JSONException
	{
		try
		{
			Object o = this.getReqJsonValue("catList");
			if (o == null || !(o instanceof List))
				return this.sendRespJsonValue(ERROR, "提交的JSON格式数据不正确！");
			List<?> catList = (List<?>) o;

			String ret = this.superService.saveCategory(catList);
			if ("1".equals(ret))
				return this.sendRespJsonValue(SUCCESS, "所选的类別数据保存成功！");
			else
				return this.sendRespJsonValue(ERROR, "保存失败或数据已经存在！");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 删除类型数据
	 * 
	 * @author：lifuyu
	 * 
	 * @return
	 * @throws JSONException
	 */
	public String categoryRemove() throws JSONException
	{
		try
		{
			String cid = this.getParamValue("cid");
			if (cid == null)
				return this.sendRespJsonValue(ERROR, "提交的数据不正确！");

			String ret = this.superService.deleteCategory(Long.parseLong(cid));
			if ("1".equals(ret))
				return this.sendRespJsonValue(SUCCESS, "所选的类別数据删除成功！");
			else
				return this.sendRespJsonValue(ERROR, "删除失败！");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 列出本库商品类别
	 * 
	 * @author：lifuyu
	 * 
	 * @return
	 * @throws Exception
	 */
	public String queryCategoryForTree() throws JSONException
	{
		try
		{
			String _v = this.getParamValue("parentCid", true);
			long parentCid = _v == null ? 0L : Long.parseLong(_v);
			List<Map<String, Object>> resultList = new ArrayList<Map<String, Object>>();
			String ret = this.superService.queryCategory(parentCid, resultList);
			if ("1".equals(ret))
				return this.sendRespJsonValue(SUCCESS, resultList);
			if ("0".equals(ret))
				return this.sendRespJsonValue(ERROR, "查询不到数据！");
			else
				return this.sendRespJsonValue(ERROR, ret);
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 从淘宝查询商品
	 * 
	 * @author：lifuyu
	 * 
	 * @return
	 * @throws JSONException
	 */
	public String queryGoodsFromTaobao() throws JSONException
	{
//		int i=0;
//		if(i==0)
//		{
//			try
//			{
//				this.getResponse().getWriter().print("{'values':{'page':1,'pageSize':30,'root':[{'picUrl':'http://img02.taobaocdn.com/bao/uploaded/i2/T1o.nWXeBXXXad0Dk6_063120.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'2379','commissionRate':'400.00','couponStartTime':null,'title':'Daxian/大显 GS5000 老人手机正品行货 老年手机大字大声老人机','shopType':null,'price':'118.00','numIid':'1970-07-11 19:59:43','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG3VSuWRIvnJbEpKV5PWe2NmCqIQfweXUNpb41kQocJgklYuFw1epNncIft78JidbNtm47iZEU7IXu%2BH0aZdSX2ZdfH8aIUbl1V8ZX3pssW0aD6pyK8gJ4ddpGWChb86JHU8w9euXyQ5c62IZCKWS98%3D&unid=99999999&spm=2014.21101577.1.0','nick':'谷米数码专营店','sellerId':null,'commissionVolume':'4679.03','volume':'1970-01-01 08:00:17','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CFcRfH0G7DbPkiN9MMMko9ziwVEtoBfeuGollO%2B9QK4H4dCHvmfaPij8UIqrycK%2BIR9eVVa6NyoyX4umUKbILK0Yw2OebCm0ZG7YWNIVvD6He7HHwJI3ISnGqhax2YMfZOEe97x7Q3z4mbolkm2JwbkxA3553FogPrAIouQZw%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'4.72','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img02.taobaocdn.com/bao/uploaded/i2/T1vVQbXfFdXXcMbQg2_044656.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'500.00','couponStartTime':null,'title':'老来福GS89 大声 老年手机 正品行货老人手机 大字体大屏幕老人机','shopType':null,'price':'100.00','numIid':'1970-06-26 17:09:10','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vK%2Faz%2Fv79cdu9Kq9P5chxSC25tD3hjLCxjKEF%2FTY19NsxiCJjnyfzaHJMOfPaLR5R6bDq%2BpDxEMl8cI%3D&unid=99999999&spm=2014.21101577.1.0','nick':'谷米科技','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:10','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCKM1uZB%2BhCClSJ%2FTBs%2Buc5K5F3C9lb%2B8XZDztCR73rhCPZrLznpDrcbasO8BQ6aFVlqr%2Bj8uI793h5lYx8bIO2dLhxBsJvLLg%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'5.00','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img01.taobaocdn.com/bao/uploaded/i1/T1jYZbXXJXXXanwTM8_071736.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'50.00','couponStartTime':null,'title':'大显W111大字体 老年手机 老人手机正品行货 大屏幕大声 老人机','shopType':null,'price':'100.00','numIid':'1970-06-06 04:45:41','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vK%2FbfafIJ1M5hZL3ZRSLJCsjnVtcXPyQfeyTQ4KoS0LsSX%2FNXKcH6WqPW18%2Fki6rcdRnzwbXrTqtJcU%3D&unid=99999999&spm=2014.21101577.1.0','nick':'全国老人机总代理','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:08','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCKN0%2Bq%2FdmNIBqYcGi3En8nCNW8F8MeHAI8Bjp13mm9ivFeEt87K6TBAkYciIVjnEwRt3%2B0bElj%2B0gl8BDxFZ7AjsvSCU1hUdQ%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'0.50','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'浙江 杭州'},{'picUrl':'http://img02.taobaocdn.com/bao/uploaded/i2/T1Y6jVXd4lXXayg3M._112351.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'500.00','couponStartTime':null,'title':'老来福GS88 彩屏 老年手机 正品行货老人手机 大字体大屏老人机','shopType':null,'price':'100.00','numIid':'1970-06-26 17:18:22','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vK%2Ff2uqvJDMJrn29y6yimbP2YwSyIgbS%2F101VSG6%2BR5TLTl4qzZ7TroEFiRW301IglsYsDeB9hLbicU%3D&unid=99999999&spm=2014.21101577.1.0','nick':'酷米客','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:09','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCKJTw9GyV%2FgCw6nsIKu5Q8Lm%2FPmTFcYXemNw8QqIzC0dncV25%2FPs4W9qWFqSuYHDCA1mH6yCDUBDpVHyNonhW0JYuDzfnTb3g%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'5.00','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img04.taobaocdn.com/bao/uploaded/i4/T1bVQaXcRiXXc4tTfb_095307.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'806','commissionRate':'400.00','couponStartTime':null,'title':'Daxian/大显 W111 老人手机正品大字大声大屏超长待机行货老人机','shopType':null,'price':'100.00','numIid':'1970-07-05 06:37:46','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG3VSuWRIvnJbEpKV5PWe2NmCqIQfweXUNpb41kQocJgklYuFw1epNncIft78JidbNtm47iZEU7IXu%2BH0aZdSX2ZdfH8aIUbl1V8ZX3pssW0aD6pyK8gJ4ddpGWChb86JHU8w9euXyQ5c62IZCKWS98%3D&unid=99999999&spm=2014.21101577.1.0','nick':'谷米数码专营店','sellerId':null,'commissionVolume':'1446.7','volume':'1970-01-01 08:00:04','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CFcRfH0G7DbPkiN9MMMko9ziwVEtoBfeuGollO%2B9QK4H4dCHvmfaPij8UIqrycK%2BIR9eVVa6NyoyX4umUKbILK0Yw2OebCm0ZG7YWNIVvD6He7HHwJI3ISnGqhax2YMfZOEe97x7Q3z4mbolkm2JwbkxA355LU%2F2CIOVv00bA%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'4.00','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img05.taobaocdn.com/bao/uploaded/i5/T1lHj.XaFcXXaB3lw__110329.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'1785','commissionRate':'210.00','couponStartTime':null,'title':'创佰佳 包快递K-Touch/天语 W619小黄蜂双卡双待手机 可root','shopType':null,'price':'353.00','numIid':'1970-06-18 16:58:41','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG3VSuWRIvnJbEpKV5PWe2NmCqIQfweXUNpb41kQocJgklYuFw1epNncIft78JidbNtm47iZEU1ZzW0fpxCRYSMrdzoMedXhHHB%2Fb8vm1eBl6lbb2STcIM7sf91wzzhDEbqykWaXxLhaBYcIaWPYnZo%3D&unid=99999999&spm=2014.21101577.1.0','nick':'创佰佳数码专营店','sellerId':null,'commissionVolume':'5689.55','volume':'1970-01-01 08:00:08','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CFcRfH0G7DbPkiN9MMMko9ziwVEtoBfeuGollO%2B9QK4H4dCHvmfaPij8UIqrycK%2BIR9eVVa6N%2B1g198vzvLo%2BlRHrx4iT7Xf7PNQqRDj1IeStNuCd4g2KtWaJ94rSRstlxtZ3VjD7OjJ0VMQD%2BX%2FslXq6QWDNI4vxSjBU3IhQ%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'7.41','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'北京'},{'picUrl':'http://img03.taobaocdn.com/bao/uploaded/i3/T15z_aXm0lXXaoJjAW_024207.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'100.00','couponStartTime':null,'title':'K-Touch/天语 W619 小黄蜂 智能手机 五色齐全 可刷安卓4.0 天探','shopType':null,'price':'579.00','numIid':'1970-07-18 06:52:40','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKxtPJth9GrZPn9tZzRFSxJ5nbmJ2tU4mdaxONZe6FqtPejOrYBC9R22zlu33C9mnQ7j4CnyFug%3D&unid=99999999&spm=2014.21101577.1.0','nick':'天探集团','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:07','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCEgXO0ugorE%2Bf8O0R0xEKxe%2BOusfgkEkox5bvzpfxMRGLle1MHZYboMhxT0emM8HDsQ6%2BhnFMq4nMfBMisKPyCLnQJmFw%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'5.79','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'北京'},{'picUrl':'http://img04.taobaocdn.com/bao/uploaded/i4/T19ZvTXh4bXXaOahk8_100619.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'442','commissionRate':'500.00','couponStartTime':null,'title':'诺基亚2610 老人手机学生手机超长待机彩屏手机Nokia/诺基亚 2030','shopType':null,'price':'107.14','numIid':'1970-03-22 01:49:18','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vK%2FYyJ4mQtcRKS%2FT6WF3tcEYv4ROa40xi9Fj%2F%2FmVjenjUwuyNSTsdu8tu%2F2WEeKP48KKexg9ut7ld28%3D&unid=99999999&spm=2014.21101577.1.0','nick':'pingshanbyd','sellerId':null,'commissionVolume':'1920.15','volume':'1970-01-01 08:00:04','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCKO6gQt4n1qtr2shAyA53ApEBHyz%2FQZXdta8Deb2uyOOXu%2Bpjl%2F15Y5dY9Ox1HHx1S13fG8%2FXhLfz5%2FD5d5KaC7Lwu%2BDY3i&unid=99999999&spm=2014.21101577.1.0','commission':'5.36','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'浙江 杭州'},{'picUrl':'http://img03.taobaocdn.com/bao/uploaded/i3/T1BVPQXdXjXXbx_078_100216.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'702','commissionRate':'50.00','couponStartTime':null,'title':'Samsung/三星 S5830I 原装正品手机 智能安卓系统 十月份产','shopType':null,'price':'1050.00','numIid':'1970-06-05 15:51:19','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKlfvAoTPii0oX%2FPKG0V%2BO3hZ%2B7yqLHtRIsNx51EKtWBoqwU%2FvLivcRKXHrCg9UpQhnc9Zk2IK6P26Y%3D&unid=99999999&spm=2014.21101577.1.0','nick':'金盛mp5数码店','sellerId':null,'commissionVolume':'3268.06','volume':'1970-01-01 08:00:05','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCShEByAWHi9GASIqgBXCe62JezJpvCSNuJgZKU5N4RHMeUEJS64cXPQUlvGqGC2Pz3vvdEF%2FI1mFFfdneTiGEjFIpeT6TPaeg%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'5.25','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img01.taobaocdn.com/bao/uploaded/i1/T1EH6_XfpgXXaZArwU_014006.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'200.00','couponStartTime':null,'title':'包快递K-Touch/天语 W619天语小黄蜂双卡手机安卓4.0已root送礼包','shopType':null,'price':'353.00','numIid':'1970-06-27 20:10:23','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG3VSuWRIvnJbEpKV5PWe2NmCqIQfweXUNpb41kQocJgklYuFw1epNncIft78JidbNtm47iZEUr3IVmDRUSrEMd7yqZl%2FEd96NJbsBS838yWF4NlzSeQBZIJLxHKICoTML%2BGPP%2FJSJSYQPjH%2F0jzBkY%3D&unid=99999999&spm=2014.21101577.1.0','nick':'事三义数码专营店','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:04','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CFcRfH0G7DbPkiN9MMMko9ziwVEtoBfeuGollO%2B9QK4H4dCHvmfaPij8UIqrycK%2BIR9eVVa6Nh1hUvo9lvaXyVgISp3kUzZ60ChwnZNUaoTuocVWpO1VHquZFHTisPbOfrZm2mc5UAF%2BHVTyoLlxmgYNT4YDD7iyHhC3rXH%2BA%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'7.06','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'北京'},{'picUrl':'http://img03.taobaocdn.com/bao/uploaded/i3/T18ItiXhtBXXckdls__080322.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'570','commissionRate':'100.00','couponStartTime':null,'title':'正品未开封 全国联保 K-Touch/天语 W619 小黄蜂 双卡双待 刷4.04','shopType':null,'price':'662.00','numIid':'1970-07-26 01:07:44','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKhZ8dDLw1iNttA0LwKitchsBKTjXiDGBPZSVh2tiAZK7CwmKqHKswj6O1zcc%2FSXwv0j9JnLdUwUtsI%3D&unid=99999999&spm=2014.21101577.1.0','nick':'松达通讯88','sellerId':null,'commissionVolume':'2727.38','volume':'1970-01-01 08:00:04','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCWQxIwO9wfjgwC%2BkRDwfefgEBRYkfIFL2xdRBjuQ27qvAbdkJfECDrbwFW%2BBaLpyHvBWnyfzbA%2BEFn2W%2F3GjFnMDNwbOOiLUg%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'6.62','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img04.taobaocdn.com/bao/uploaded/i4/T1IuDIXjprXXax1wLX_115308.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'392','commissionRate':'500.00','couponStartTime':null,'title':'皇冠秒杀诺基亚2610超长待机老人学生手机Nokia/诺基亚 2030台','shopType':null,'price':'100.00','numIid':'1970-06-02 22:10:30','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKxmV24FvxI129Mku7HjkvcSCBeG35bzlRAFIzoMH8q%2B9MQv38hqhHuBiNZcSYAvN4ON9Yl7UvWHiyY%3D&unid=99999999&spm=2014.21101577.1.0','nick':'乡村爱情交响曲8','sellerId':null,'commissionVolume':'1609.25','volume':'1970-01-01 08:00:03','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCEr%2BI1f5wxPLszzod%2FZTsOwPkQIle0Z0sy2DX%2Ba%2BRgbTsSMWSLtLHNih278XKmRhJ6XdULEu7XdOpGzProR7ieT4cGiFLFCkw%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'5.00','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 广州'},{'picUrl':'http://img05.taobaocdn.com/bao/uploaded/i5/T1f6saXXxdXXXWBXM0_033849.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'50.00','couponStartTime':null,'title':'大显F13大字体 老年手机 老人手机正品行货 大屏幕大声老人机W111','shopType':null,'price':'100.00','numIid':'1970-07-08 12:19:01','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKlW3eKZk7%2BHWKvgs5U8gEWgCM1WUIA%2BHo%2FQzo%2BZSrHi5iejvPkfnxSCSbezsZ41rZDdMEaAmwELsA%3D%3D&unid=99999999&spm=2014.21101577.1.0','nick':'周宏亮','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:01','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCSoeyOxPN8PZZ9xOllVjfrkN3%2FY%2F4dSK1E6sss6dRQQtxWaaAycZk4DZ9IbTs4IUfn3c3IrWhkwlLCmHfuj9uDguXfA%2FfGl&unid=99999999&spm=2014.21101577.1.0','commission':'0.50','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'浙江 杭州'},{'picUrl':'http://img02.taobaocdn.com/bao/uploaded/i2/T1p1r.XgXcXXX4uuoU_014353.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'200.00','couponStartTime':null,'title':'【包顺丰买1送7】MIUI/小米 M1s 小米1S手机  1s电信版 青春版','shopType':null,'price':'1568.00','numIid':'1970-08-17 08:06:48','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG3VSuWRIvnJbEpKV5PWe2NmCqIQfweXUNpb41kQocJgklYuFw1epNncIft78JidbNtm47iZEUsZdSK6%2FMI0cgdaOzNvtMhvbJf3Y%2BGsgoMdKI1%2B75HHvIPC2VvrIv4p2DGRap%2FggRSUQTDpsvLLjAg%3D&unid=99999999&spm=2014.21101577.1.0','nick':'三际数码专营店','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:04','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CFcRfH0G7DbPkiN9MMMko9ziwVEtoBfeuGollO%2B9QK4H4dCHvmfaPij8UIqrycK%2BIR9eVVa6NmSc8ykO08XbpDG20OKROJRJG7S7UdVfIQYtojHqK2oCNfhpMGN6Y3BsJ6pcT1qbDVjmUTHAhdslpKt%2FDWTD2TgHg8rB%2FGF0g%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'31.36','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'山东 济南'},{'picUrl':'http://img03.taobaocdn.com/bao/uploaded/i3/T1fFfSXXhdXXcINeg._112038.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'50.00','couponStartTime':null,'title':'Apple/苹果 iPhone 5 苹果5代16G 32G 64G V版三网 现货送港澳游','shopType':null,'price':'5488.00','numIid':'1970-08-19 11:28:16','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKlQ59X9Yboyw3gAGb4EMAVrjENwQGcsaaFXMyCR1CZSK53MgSt3MhUBJ%2F3lJXYa9%2BMn1e6EGZcB17E%3D&unid=99999999&spm=2014.21101577.1.0','nick':'国越电讯','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:04','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCSuS8xmMTmA91erPt%2BnAeOr4nsQF%2FzSKyqLIKaVqEiZ7QHHnuYyeyN%2BPc9rJp1i2%2Fjt674skO4tsxZbfkPMLfvqdm6y65Q1rw%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'27.44','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img04.taobaocdn.com/bao/uploaded/i4/T1cTzYXb8mXXaoBmU5_060119.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'50.00','couponStartTime':null,'title':'假一赔十 MIUI/小米 M1s 小米1S手机 小米手机正品带卡套餐送蓝牙','shopType':null,'price':'2000.00','numIid':'1970-06-13 08:15:59','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKKBdX4Itz9m9ZMTBncLADeCVy05XTIBjCgbQnip6522pf1oRqtm4E%2BGRBLK7fWPO0DhDM51WCD7Bw%3D%3D&unid=99999999&spm=2014.21101577.1.0','nick':'meishuang0928_2008','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:03','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwC8VDitI%2B%2B%2B01%2B8zgVtxkTH%2FUndLpCEQs7KOT2%2F9Q1giqlcMkNyEtE%2F7C%2FMvXA4RPlqJMuUGc6ayb%2BfBsk6fW5e8d8wjx3EZ&unid=99999999&spm=2014.21101577.1.0','commission':'10.00','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'北京'},{'picUrl':'http://img04.taobaocdn.com/bao/uploaded/i4/T1IZPvXXpaXXcKTas0_033944.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'50.00','couponStartTime':null,'title':'小m11国产半智能安卓系统超薄直板情侣双卡双待男女士全触屏手机','shopType':null,'price':'255.00','numIid':'1970-08-06 17:04:56','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKlRSs6O8M5yD8Lg2C7JcUKjdgSPeU5BdXk9eK1XZgLh62IlM0Grtik0x8473MDqwjg1DhjQZ4XeeEg%3D&unid=99999999&spm=2014.21101577.1.0','nick':'美美的小店2009','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:03','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCSv8bzv4QWvmNLPjFiW3bxoI8nXokfu38XgaqL1t8uCz5ZlgGIgW68cG3US25gEaUPuZBV7ZMxMD2uwys3zwKvCwELur6heyQ%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'1.28','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img01.taobaocdn.com/bao/uploaded/i1/T1_ur_XhhdXXXxQokY_031037.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'1322','commissionRate':'650.00','couponStartTime':null,'title':'TOOKY/京崎 T1982 触屏  双卡双待 3G超薄女性 安卓智能手机正品','shopType':null,'price':'599.90','numIid':'1970-06-26 12:55:37','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG3VSuWRIvnJbEpKV5PWe2NmCqIQfweXUNpb41kQocJgklYuFw1epNncIft78JidbNtm47iZEU7DH15xbADEWZU7biJr%2BTDJVk3uVB%2BA5DWvkutHBjpm8Q6Lo7GJs3zRMR5oDaVObKUH%2BCC71%2B9s9zc%3D&unid=99999999&spm=2014.21101577.1.0','nick':'京崎旗舰店','sellerId':null,'commissionVolume':'33966.94','volume':'1970-01-01 08:00:02','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CFcRfH0G7DbPkiN9MMMko9ziwVEtoBfeuGollO%2B9QK4H4dCHvmfaPij8UIqrycK%2BIR9eVVa6NyjlwG4wdN45ovkb%2BRazNmY8HlmkUHkPAUU4A14gZhT0byoSXjKya7kIc99rxJZWlawTG75%2BNCSJNuvXt7nDKLMdJH24fUTsA%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'38.99','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img03.taobaocdn.com/bao/uploaded/i3/T1UeS5XXNqXXcXsZs8_100007.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'540','commissionRate':'500.00','couponStartTime':null,'title':'包邮原装正品Nokia/诺基亚 5000超薄直板手机 n5000 学生手机','shopType':null,'price':'111.11','numIid':'1970-06-06 23:04:09','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKq5g3GdYi3jKYFv9ZJhm4VXdsEP%2FJn0cONSwVvH5BkSmx2Y768mKhQayiJo8Lk9hEsev2xXUy83RKw%3D&unid=99999999&spm=2014.21101577.1.0','nick':'淘沙天浪','sellerId':null,'commissionVolume':'4224.38','volume':'1970-01-01 08:00:02','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCcGCKYaWNQRJ4cZC18uHonGU1qL0uW51D0gKnan7TYJs%2BHSqMO5AzxGZRVfMtJNh3vY%2BN%2FkOp0CuTcOTp8FtbD6LUXGAaKAww%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'5.56','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img03.taobaocdn.com/bao/uploaded/i3/T1FJysXmlJXXcfMoU3_051507.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'363','commissionRate':'50.00','couponStartTime':null,'title':'Apple/苹果 iPhone 4S 原装正品 杜绝假配件 江浙沪皖快 感恩回馈','shopType':null,'price':'3689.00','numIid':'1970-04-29 10:16:54','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKqzIhBQuAwyGpQxZaYHR0OGhmX1K0PC7TYK1mu7%2F69k%2FkBuFBnwxxluJgF7nHtw8LgXDRrQ9IJ7WQ%3D%3D&unid=99999999&spm=2014.21101577.1.0','nick':'最低最诚信','sellerId':null,'commissionVolume':'7143.25','volume':'1970-01-01 08:00:03','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCcM%2FEUX1PfYCvzoT4hSWpndG22xcNFGU9kIWDAomBTsuxzbTSPQ%2FzLBmuaImWpgWNsvUu%2BqH1cT7noUPny79yi8Qs5aQy1n&unid=99999999&spm=2014.21101577.1.0','commission':'18.45','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'江苏 南京'},{'picUrl':'http://img01.taobaocdn.com/bao/uploaded/i1/409186965/T2ixSYXgBaXXXXXXXX_!!409186965.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'50.00','couponStartTime':null,'title':'最新款大显F63 大喇叭 超长待机 照相 大屏大字体 老人手机老人机','shopType':null,'price':'100.00','numIid':'1970-08-27 15:03:12','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vK%2FbfafIJ1M5hZL3ZRSLJCsjnVtcXPyQfeyTQ4KoS0LsSX%2FNXKcH6WqPW18%2Fki6rcdRnzwbXrTqtJcU%3D&unid=99999999&spm=2014.21101577.1.0','nick':'全国老人机总代理','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:01','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCKN0%2Bq%2FdmNIBqYcGi3En8nCNW8F8MeHAI8Bjp13mm9ivFeEt87K6TBAkYciIVjnEwRt3%2B0bElj%2B0gl8BDxG%2FkyRk6eTowZM7A%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'0.50','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'浙江 杭州'},{'picUrl':'http://img03.taobaocdn.com/bao/uploaded/i3/T1CvEaXnhhXXb40LDa_120805.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'662','commissionRate':'330.00','couponStartTime':null,'title':'【送一手机壳】TOOKY/京崎 T1982 女性安卓智能手机 双卡双待3G','shopType':null,'price':'558.00','numIid':'1970-06-26 15:08:53','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG3VSuWRIvnJbEpKV5PWe2NmCqIQfweXUNpb41kQocJgklYuFw1epNncIft78JidbNtm47iZEUjlU6gFVqCIsv%2FGOTV3KRk5MsNbZaw%2BUZCOVKV8ko7nQAh9jgDndywVEhsGdL4v%2FD%2B%2BFfSEnGbrVaU%3D&unid=99999999&spm=2014.21101577.1.0','nick':'家友数码通讯专营店','sellerId':null,'commissionVolume':'11018.89','volume':'1970-01-01 08:00:02','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CFcRfH0G7DbPkiN9MMMko9ziwVEtoBfeuGollO%2B9QK4H4dCHvmfaPij8UIqrycK%2BIR9eVVa6NpR6gMyfsUofOImfOtoj8hJ0hzNeTF0uA1TUWDKN7TrYmFg%2BmILHak70kLJRGZaDSxLIsDX7%2BydYP%2Bo8WUmKsYdt6PyxgBiew%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'18.41','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img02.taobaocdn.com/bao/uploaded/i2/T1r3QXXXhaXXXjkGAW_022444.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'50.00','couponStartTime':null,'title':'关爱心GS89 大声 老年手机正品行货老人手机 大字大屏老人机','shopType':null,'price':'100.00','numIid':'1970-07-09 23:05:07','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vK%2FSfYxrFzK7ir7lhzpc0gzfxQHHvW3tJpQXKdNDpBAZ9fyQHTgFDOc85mFNBoi2DnsAyalr3olq0Ks%3D&unid=99999999&spm=2014.21101577.1.0','nick':'guiqinlong','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:01','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCKEfOnhtKW%2FIfk3y%2FqBfGafaploeixdMtm5jCB4%2F%2FVQPizs33ERKWtao9cLdI2MVOIz5to%2BtJcGq18NNK%2BZ9Mg7ULbWfa8Q7Q%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'0.50','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img02.taobaocdn.com/bao/uploaded/i2/T1Yc2UXbJoXXaZRW_b_092848.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'500.00','couponStartTime':null,'title':'老来福GS88大字体 老年手机 老人手机正品行货 大屏幕大声 老人机','shopType':null,'price':'100.00','numIid':'1970-07-08 15:00:26','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vK%2Faz%2Fv79cdu9Kq9P5chxSC25tD3hjLCxjKEF%2FTY19NsxiCJjnyfzaHJMOfPaLR5R6bDq%2BpDxEMl8cI%3D&unid=99999999&spm=2014.21101577.1.0','nick':'谷米科技','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:01','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCKM1uZB%2BhCClSJ%2FTBs%2Buc5K5F3C9lb%2B8XZDztCR73rhCPZrLznpDrcbasO8BQ6aFVlqr%2Bj8uI793h5lYx8bI0GuyxCLdUaWrg%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'5.00','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img02.taobaocdn.com/bao/uploaded/i2/T11JDUXnpnXXXZFrLa_120307.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'50.00','couponStartTime':null,'title':'只要1788！ Huawei/华为 U9508荣耀四核 荣耀2爱享 可ROOT有到货','shopType':null,'price':'1888.00','numIid':'1970-07-09 14:51:06','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKlS5ZdAmzEFzVn5iI5A1BSd2nSgNloCcNofcd2Og4y4iYFb1xyw6LXBRLoHm3mPleLXmHYqe%2Bwejg%3D%3D&unid=99999999&spm=2014.21101577.1.0','nick':'兴达电讯','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:02','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCSsYn3M44KskpJLbqIn0fi0aFx6YOZklj8OaNKdjZEYwBHaInCJr0%2FTiRPR9ITB0Pk5xRqEtF2Ft8ATLMnN2ZKyB3SrEbL%2F&unid=99999999&spm=2014.21101577.1.0','commission':'9.44','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img02.taobaocdn.com/bao/uploaded/i2/T1Y6jVXd4lXXayg3M._112351.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'50.00','couponStartTime':null,'title':'老来福GS88老年手机 正品行货老人手机 大字大屏老人机 超长待机','shopType':null,'price':'100.00','numIid':'1970-07-29 00:27:20','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKxgY%2F4Fm8rvN0Cw1vn%2FYg%2BYU52urJAQmnUVsLFW68ksfLvq0iKqXylS7EGoVFoAkcC7U4I%2B5t2FTk8%3D&unid=99999999&spm=2014.21101577.1.0','nick':'brightstep','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:01','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCEt3HsKnIIVjqaL1xoFi%2FGi6EOYsOHn5hxD%2BlU8gmfNNMVUT9NE1%2FVwg6gsIb%2BS7xiqmRWeIdq4R2ggVPreFyMquDdayM9oEA%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'0.50','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img04.taobaocdn.com/bao/uploaded/i4/T18vT_XfJbXXclh5Ya_121516.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'0','commissionRate':'200.00','couponStartTime':null,'title':'【新品预售】Huawei/华为 U9508 荣耀四核爱享版 1GRAM版本','shopType':null,'price':'1888.00','numIid':'1970-07-22 14:31:39','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG3VSuWRIvnJbEpKV5PWe2NmCqIQfweXUNpb41kQocJgklYuFw1epNncIft78JidbNtm47iZEU7AqofWuSU%2BriD2EQGZW%2FkIG%2BXG7qlDaJ3wjWD8x6fDdoVjyUootJt7GiKz72t6XvdzLiwgc6J9gco%3D&unid=99999999&spm=2014.21101577.1.0','nick':'华为旗舰店','sellerId':null,'commissionVolume':'0','volume':'1970-01-01 08:00:03','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CFcRfH0G7DbPkiN9MMMko9ziwVEtoBfeuGollO%2B9QK4H4dCHvmfaPij8UIqrycK%2BIR9eVVa6Nyg7EPXeMF8SWq2OMjBPyV6yOTvE49t7Fefzo0tlhJ84xVPPMYzTcm8hnInrmQWNrR24hY2NgUi06HlOgA9cQvW2Kd%2Bpbyarw%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'37.76','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'浙江 杭州'},{'picUrl':'http://img01.taobaocdn.com/bao/uploaded/i1/T1POf5XoheXXbtd_IU_015842.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'415','commissionRate':'150.00','couponStartTime':null,'title':'K-Touch/天语 W619 小黄蜂 双卡双待 安卓智能手机 最新版1GCPU','shopType':null,'price':'478.00','numIid':'1970-06-19 19:35:02','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vK4pDXw1H8w8AyLtjq2e%2FYW5DdKLBp2KSnZ9LsC536J7S4AnhmjSbtsrHFITplnRPuyoLkN4WWcFkE4%3D&unid=99999999&spm=2014.21101577.1.0','nick':'星来科技','sellerId':null,'commissionVolume':'2941.43','volume':'1970-01-01 08:00:02','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCMJpkPx74Nq9izM7OMshpxQQyFxeoy8VV2iiWRwvjlekHH1DksF5yKB0mLc4edd8a%2F0zETKMKZaSjqZP8gUhVqi6SdmhhoLYg%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'7.17','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://image.taobao.com/bao/uploaded/i3/T1TyjYXl0aXXX2VusW','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'296','commissionRate':'80.00','couponStartTime':null,'title':'Samsung/三星 I9100 Galaxy S2 双核智能机 现货速发 韩版促销礼','shopType':null,'price':'3598.00','numIid':'1970-05-29 00:57:44','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG69RGcaJPb63yl1mhX8sau06tapfSkbLEwj3dlTGKDTmDj38hcOldPEDKl33zpJRWeZRK87vKq0YuFObkWjQ2WNAWeXuL3Wk%2B86tgEecsawkL2Sy65iNLDCyecFEAcYvxgIJuUtrIKdSOdX1UKWHsI%3D&unid=99999999&spm=2014.21101577.1.0','nick':'百诚通讯2008','sellerId':null,'commissionVolume':'4645.82','volume':'1970-01-01 08:00:02','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ay1EDpdIa%2BRMyEbEgcUaor%2B5pka%2FRDPnxC7S2LS7Ewv%2FLKoQGrV%2FgHyEwCcLv0J%2BbSsiRZa4teBmflVf6GvkVrFLxe2ENhZE0UDKE1rOO1SCAl0BzPY7lhzRP%2BBSW6P9gkkAhq450H%2BzwP7%2BWe3%2FQaNI7A%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'28.78','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'},{'picUrl':'http://img01.taobaocdn.com/bao/uploaded/i1/T11fjZXchnXXXBYAsU_015435.jpg','couponRate':null,'taobaokeCatClickUrl':null,'couponPrice':null,'class':'class com.taobao.api.domain.TaobaokeItem','commissionNum':'374','commissionRate':'400.00','couponStartTime':null,'title':'Daxian/大显 GS8000老人手机正品行货老人机大字大屏老年手机','shopType':null,'price':'128.00','numIid':'1970-07-31 18:46:04','shopClickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB04MQzdgG3VSuWRIvnJbEpKV5PWe2NmCqIQfweXUNpb41kQocJgklYuFw1epNncIft78JidbNtm47iZEU7IXu%2BH0aZdSX2ZdfH8aIUbl1V8ZX3pssW0aD6pyK8gJ4ddpGWChb86JHU8w9euXyQ5c62IZCKWS98%3D&unid=99999999&spm=2014.21101577.1.0','nick':'谷米数码专营店','sellerId':null,'commissionVolume':'843.23','volume':'1970-01-01 08:00:02','couponEndTime':null,'keywordClickUrl':null,'clickUrl':'http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CFcRfH0G7DbPkiN9MMMko9ziwVEtoBfeuGollO%2B9QK4H4dCHvmfaPij8UIqrycK%2BIR9eVVa6NyoyX4umUKbILK0Yw2OebCm0ZG7YWNIVvD6He7HHwJI3ISnGqhax2YMfZOEe97x7Q3z4mbolkm2JwbkxA356UpEEgotTxjuog%3D%3D&unid=99999999&spm=2014.21101577.1.0','commission':'5.12','sellerCreditScore':'1970-01-01 08:00:00','itemLocation':'广东 深圳'}],'search':false,'searchField':null,'searchOper':null,'searchString':null,'sidx':null,'sord':null,'totalPage':5906,'totalRecord':177177},'status':'success'}");
//			}
//			catch (IOException e)
//			{
//				e.printStackTrace();
//			}
//			return NONE;
//		}
		try
		{
			PageBean pageBean = this.getParamPageBean();
			long cid = Long.parseLong(this.getParamValue("cid"));
			String sort = this.getParamValue("sort");

			String ret = this.insyncService.goodsSynchronizingFromTaobao(cid, sort, pageBean);
			if ("1".equals(ret))
				return this.sendRespJsonValue(SUCCESS, pageBean);
			if ("0".equals(ret))
				return this.sendRespJsonValue(ERROR, "查询不到数据！");
			else
				return this.sendRespJsonValue(ERROR, ret);
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 保存添加的TAG
	 * 
	 * @return
	 * @throws JSONException
	 */
	public String submitTagAdd() throws JSONException
	{
		try
		{
			String mnid = this.getParamValue("mnid");
			String tagName = this.getParamValue("tagName");
			String ret = this.superService.saveTag(mnid, tagName);
			if ("EXIST".equals(ret))
				return this.sendRespJsonValue(ERROR, "TAG已经存在!");
			else
				return this.sendRespJsonValue(SUCCESS, "OK");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 从DB中查询tag于加载
	 * 
	 * @return
	 */
	public String queryAllTags() throws JSONException
	{
		try
		{
			List<?> qryLs = this.systemService.queryAllTags();
			return this.sendRespJsonValue(SUCCESS, qryLs);
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 保存选择的商品
	 * 
	 * @author：lifuyu
	 * @return
	 * @throws JSONException
	 */
	public String submitGoods() throws JSONException
	{
		try
		{
			Map<String, String> gmap = this.getParamValues();
			long numIid = Long.parseLong(this.getParamValue("numIid"));

			String ret = this.superService.saveGoods(numIid, gmap);
			if ("1".equals(ret))
			{
				return this.sendRespJsonValue(SUCCESS, "OK");
			}
			else
				return this.sendRespJsonValue(ERROR, ret);
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 列出本库商品类别
	 * 
	 * @author：lifuyu
	 * 
	 * @return
	 * @throws Exception
	 */
	public String queryMenuForTree() throws JSONException
	{
		try
		{
			String _v = this.getParamValue("pmnid", true);
			int pmnid = _v == null ? 0 : Integer.parseInt(_v);
			List<Map<String, Object>> resultList = new ArrayList<Map<String, Object>>();
			String ret = this.superService.queryMenusByPmnid(pmnid, resultList);
			if ("1".equals(ret))
				return this.sendRespJsonValue(SUCCESS, resultList);
			if ("0".equals(ret))
				return this.sendRespJsonValue(ERROR, "查询不到数据！");
			else
				return this.sendRespJsonValue(ERROR, ret);
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 从DB中获菜单项的内容
	 * 
	 * @author kansum
	 */
	public String getMenuByMnid() throws JSONException
	{
		try
		{
			String _v = this.getParamValue("mnid", true);
			int mnid = _v == null ? 0 : Integer.parseInt(_v);
			SysMenu menu = this.superService.getMenuByMnid(mnid);
			if (menu != null)
				return this.sendRespJsonValue(SUCCESS, menu);
			else
				return this.sendRespJsonValue(ERROR, "查询不到数据！");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 保存菜单项
	 * 
	 * @author kansum
	 */
	public String submitMenuItemSave() throws JSONException
	{
		try
		{
			Map<String, String> menuItemMap = this.getParamValues();

			String ret = this.superService.saveMenuItem(menuItemMap);
			if ("OK".equals(ret))
				return this.sendRespJsonValue(SUCCESS, "OK");
			else
				return this.sendRespJsonValue(ERROR, "菜单项保存失败！");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 删除菜单项
	 * 
	 * @author kansum
	 */
	public String removeMenuItem() throws JSONException
	{
		try
		{
			String _v = this.getParamValue("mnid", true);
			int mnid = _v == null ? 0 : Integer.parseInt(_v);
			String ret = this.superService.deleteMenuItem(mnid);
			if ("OK".equals(ret))
				return this.sendRespJsonValue(SUCCESS, "OK");
			else
				return this.sendRespJsonValue(ERROR, "存在子菜单项，不能删除！");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 从DB中查询菜单相关的tag
	 * 
	 * @return
	 */
	public String queryMenuItemRelateTags() throws JSONException
	{
		try
		{
			int mnid = Integer.parseInt(this.getParamValue("mnid"));
			List<?> qryLs = this.superService.queryTagesByMnid(mnid);
			return this.sendRespJsonValue(SUCCESS, qryLs);
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 保存菜单标签的关联
	 * 
	 * @author kansum
	 */
	public String submitMenuTagsLinkSave() throws JSONException
	{
		try
		{
			Map<String, String> menuTagLinkMap = this.getParamValues();

			String ret = this.superService.saveMenuTagsLink(menuTagLinkMap);
			if ("OK".equals(ret))
				return this.sendRespJsonValue(SUCCESS, "OK");
			else
				return this.sendRespJsonValue(ERROR, "保存失败！");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 删除菜单标签的关联
	 * 
	 * @author kansum
	 */
	public String removeMenuTagLinks() throws JSONException
	{
		try
		{
			int mnid = Integer.parseInt(this.getParamValue("mnid"));
			String[] tagids = this.getParamValue("tagids").split(",");

			String ret = this.superService.deleteMenuTags(mnid, tagids);
			if ("OK".equals(ret))
				return this.sendRespJsonValue(SUCCESS, "OK");
			else
				return this.sendRespJsonValue(ERROR, "删除菜单标签的关联失败！");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 删除TAG标签
	 * 
	 * @author kansum
	 */
	public String removeTags() throws JSONException
	{
		try
		{
			String[] tagids = this.getParamValue("tagids").split(",");

			String ret = this.superService.deleteTags(tagids);
			if ("OK".equals(ret))
				return this.sendRespJsonValue(SUCCESS, "OK");
			else if ("EXIST".equals(ret))
				return this.sendRespJsonValue(ERROR, "存在TAG-MENU的关联，不能删除！");
			else
				return this.sendRespJsonValue(ERROR, "删除TAG失败！");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 加载所有系统配置项(t_sys_config)
	 * 
	 * @author kansum
	 */
	public String queryAllSysConfig() throws JSONException
	{
		try
		{
			PageBean pageBean = getParamPageBean();
			String ret = this.superService.queryAllSysConfig(pageBean);
			if ("OK".equals(ret))
				return this.sendRespJsonValue(SUCCESS, CUtils.toEuiDatagridMap(pageBean));
			else
				return this.sendRespJsonValue(ERROR, "很遗憾！无法完成查询，可能服务器繁忙，请稍后再试！");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 保存系统配置项
	 * 
	 * @author kansum
	 */
	public String submitSysConfigSave() throws JSONException
	{
		try
		{
			Map<String, String> cfgMap = this.getParamValues();
			String ret = this.superService.saveSysConfig(cfgMap);
			if ("OK".equals(ret))
				return this.sendRespJsonValue(SUCCESS, "OK");
			else
				return this.sendRespJsonValue(ERROR, "保存失败！");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}

	/**
	 * 删除系统配置项
	 * 
	 * @author kansum
	 */
	public String removeSysConfigs() throws JSONException
	{
		try
		{
			String[] cids = this.getParamValue("cids").split(",");

			String ret = this.superService.deleteSysConfigs(cids);
			if ("OK".equals(ret))
				return this.sendRespJsonValue(SUCCESS, "OK");
			else
				return this.sendRespJsonValue(ERROR, "删除系统配置项失败！");
		}
		catch (Exception e)
		{
			throw new JSONException(e.getMessage(), e);
		}
	}
}
